<script setup></script>

<template>
  <el-container>
    <el-aside width="200px" style="height: 100vh">
      <el-menu
        router="true"
        style="height: 100vh"
        active-text-color="#ffd04b"
        background-color="#545c64"
        class="el-menu-vertical-demo"
        default-active="2"
        text-color="#fff"
        @open="handleOpen"
        @close="handleClose"
      >
        <el-menu-item index="room">
          <el-icon><setting /></el-icon>
          <span>宿舍管理</span>
        </el-menu-item>
        <el-menu-item index="roomGroup">
          <el-icon><setting /></el-icon>
          <span>宿舍楼管理</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    <el-container>
      <el-header style="background-color: blue">Header</el-header>
      <el-main style="background-color: yellow">
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<style scoped></style>
